<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/backend/common/taglib.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/backend/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>后台管理工作平台</title>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
A:active,A:visited,A:link {
	COLOR: #0629FD;
	TEXT-DECORATION: none
}

A:hover {
	COLOR: #FF6600;
	TEXT-DECORATION: none
}

A.relatelink:active,A.relatelink:visited,A.relatelink:link { 
	color: white;
	TEXT-DECORATION: none
}

A.relatelink:hover {
	COLOR: #FF6600;
	TEXT-DECORATION: none
}

td {
	font-size: 12px;
	color: #003366;
	height:24px
}

.STYLE1 a{
	COLOR: white;
}
.STYLE1 A:active,.STYLE1 A:visited,.STYLE1 A:link {
	COLOR: white;
	TEXT-DECORATION: none
}
.STYLE1 a:hover{
	COLOR: red;
}
-->
</style>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
	$(function(){
		$("input[name=orgId]").each(function(){
			$(this).click(function(){
				window.parent.document.getElementById("orgId").value = $(this).val();

			})
			
		});
	})
	

	
	
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 组织机构列表</span></td>
              </tr>
            </table></td>
            <td>
            	<div align="right">
            	 <span class="STYLE1">
	             &nbsp; <img src="images/del.gif" width="10" height="10" /> <a href="organization!selectOrgList.action?pid=${ppid }">返回</a> 
	              &nbsp;&nbsp;
	             </span>
	             <span class="STYLE1"> &nbsp;</span>
             	</div>
             </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td width="4%" height="20" bgcolor="d3eaef" class="STYLE10"></td>
        <td width="50" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">序号</span></div></td>
        <td width="50" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">机构名称</span></div></td>
        <td width="50" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">机构编号</span></div></td>
        <td width="50" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">父机构名称</span></div></td>
      </tr>
      
      <c:if test="${not empty pagination.data}">
      <c:forEach items="${pagination.data}" var="c">
      <tr>
        <td height="20" bgcolor="#FFFFFF">
	        <div align="center">
	        	<input type="radio" name="orgId" value="${c.id }" />
	        </div>
        </td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${c.id }</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"><a href="organization!selectOrgList.action?pid=${c.id}">${c.name }</a></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${c.sn }</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${c.parent.name }</div></td>
      </tr>
      </c:forEach>
      </c:if>
      
      <c:if test="${empty pagination.data}">
      <tr>
          <td height="20" colspan="5" bgcolor="#FFFFFF" class="STYLE19"><div align="center">没有组织机构可以显示</div></td>
      </tr>
      </c:if>
      
    </table>

    </td>
  </tr>
  
  <tr>
    <td height="30">
		<jsp:include page="/backend/common/pager.jsp">
			<jsp:param name="url" value="organization!selectOrgList.action"/>
			<jsp:param name="params" value="pid"/>
		</jsp:include>
 	</td>
  </tr>
  
</table>
</body>
</html>

